Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow setting the storageClass for /tmp and /app/tmp volumes #89

Conversation

johanneskastl
Copy link
Contributor

charts/openproject/templates/_helpers.tpl: use .Values.persistence.storageClassName for /tmp and /app/tmp volumes, if it is defined

Copy link

changeset-bot bot commented Feb 4, 2024

🦋 Changeset detected

Latest commit: dfcf786

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/helm-charts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@johanneskastl
Copy link
Contributor Author

Should I use a changeset for this?

@oliverguenther
Copy link
Member

Hi @johanneskastl , indeed every change to the helm-chart needs a changeset, as with it we track the changelog after a release. I've added one for you!

This PR is a good default but I would imagine some people would want to set a different storageClassName for the tmp volumes as they have different use-cases. We could add a new tmpStorageClassName which is empty by default and do a coalesce?

@johanneskastl
Copy link
Contributor Author

Thanks for adding the changeset. Funny name!

I agree it might be a good idea to offer that functionality, but I have no time in the next couple of days to implement this.

So for now I would propose to merge this and add the different storageClass functionality later on.

@kastl-ars
Copy link

Any news on this? Could this be merged (after a rebase, of course)? Or are there any objections?

@johanneskastl johanneskastl force-pushed the 20240204_storageClassName_for_tmp_and_app-tmp_volumes branch from ee91066 to 7a11faa Compare July 19, 2024 16:03
@johanneskastl
Copy link
Contributor Author

Any news on this? Could this be merged (after a rebase, of course)? Or are there any objections?

Sorry for the noise, I had some minutes and enhanced this PR finally to support either a tmpStorageClassName (if set) or falling back to the regular storageClassName.

@oliverguenther Is this how you had it in mind?

@oliverguenther
Copy link
Member

Hi @johanneskastl , thanks a lot for the update. Yes this is exactly what I had in mind. I'll release this today 👍

@oliverguenther oliverguenther merged commit 6be6b9c into opf:main Jul 22, 2024
2 checks passed
oliverguenther added a commit to dominikkaminski/openproject-helm-charts that referenced this pull request Jul 22, 2024
* charts/openproject/templates/_helpers.tpl: use .Values.persistence.storageClassName for /tmp and /app/tmp volumes, if it is defined

* charts/openproject/values.yaml: define empty tmpStorageClassName

* Create gorgeous-snakes-drum.md

* Update gorgeous-snakes-drum.md

---------

Co-authored-by: Oliver Günther <[email protected]>
@oliverguenther
Copy link
Member

oliverguenther commented Jul 22, 2024

Released as 5.4.0 https://github.com/opf/helm-charts/releases/tag/openproject-5.4.0. Sorry for the delay!

@oliverguenther
Copy link
Member

FYI As I'm also about to merge PR #104 , we will move the value from persistence.tmpStorageClassName to openproject.tmpVolumesStorageClassName for consistency with the other options (useTmpVolumes, size etc.).

This will be released as chart 7.0 even though it was just release today to adhere with semantic versioning. I'd recommend you update directly to that and use the updated syntax

@kastl-ars
Copy link

FYI As I'm also about to merge PR #104 , we will move the value from persistence.tmpStorageClassName to openproject.tmpVolumesStorageClassName for consistency with the other options (useTmpVolumes, size etc.).

This will be released as chart 7.0 even though it was just release today to adhere with semantic versioning. I'd recommend you update directly to that and use the updated syntax

Thanks for the warning, I am currently upgrading to 6.0.0 but will upgrade to 7.0.0 once it was released...

@oliverguenther
Copy link
Member

FYI 7.0.0 is now released https://github.com/opf/helm-charts/releases/tag/openproject-7.0.0

@kastl-ars
Copy link

Thanks for the warning, I am currently upgrading to 6.0.0 but will upgrade to 7.0.0 once it was released...

In my case there was no change necessary, as I only set the persistence.storageClassName which is still used as a fallback in case the tmpVolumesStorageClassName is not set. So everything should be fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants